@extends("layout.main")
@section("content")
        <div class="col-sm-8 blog-main">
            <form action="/posts/{{$post->id}}" method="POST">
                {{method_field("PUT")}}
                {{csrf_field()}}
                <div class="form-group">
                    <label>标题</label>
                    <input name="title" type="text" class="form-control" placeholder="这里是标题" value="{{$post->title}}">
                </div>
                <div class="form-group">
                    <label>内容</label>
                    <input type="hidden" name="content" id="content_value">
                    <div id="content">{!! $post->content !!}</div>
                </div>
                @include('layout.error')
                <button type="submit" class="btn btn-default" id="submit_btn">提交</button>
            </form>
            <br>
        </div><!-- /.blog-main -->
@endsection



